<?php
namespace c\file;

/**
 * Description of v
 *
 * @author YeFng
 */
class v extends \control
{
    var $class = array('F'=>'\files');
    
    function index_home()
    {
        $q = \encrypt::q_de($_GET['q']);
        parse_str($q, $arr);
        $f = $arr['f'];
        
        // down
        $f = $this->F->ok_path(FILE_DIR, $f);
        if ($f)
            $this->F->download(FILE_DIR.$f);
        $this->clue(\lang::g('file not exist:'));
    }
}
